var app = getApp();
Page({
  data:{
    fullName:'',
    cellphone:'',
    city:'',
    idNumber:'',
    bankName:'',
    bankAccount:'',
    userName:'',
    userCode:'',
    opportunityCounts:'',
    waitSHCounts:'',
    alreadyCSCounts:'',
    alreadySPCounts:'',
    alreadyFDCounts:'',
    alreadySBCounts:''
  },
  onLoad:function(options){
      wx.request({
        url: 'http://localhost:8080/',
        data: {
            openId: app.globalData.openId,
        },
        method: 'GET',
        header: {},        
        complete: function() {
          // complete
        }
      })
  },
  clickTap:function () {
    var type = e.currentTarget.dataset.type;
    if (type == 1) {
        wx.redirectTo({
            url: 'http://localhost:8080/wechatOpportunity/wxIndex?stage=allItems' 
        });
    }
    if (type == 2) {
        wx.redirectTo({
             url: 'http://localhost:8080/wechatOpportunity/wxIndex?stage=waitSH' 
        });
    }
    if (type == 3) {
        wx.redirectTo({
             url: 'http://localhost:8080/wechatOpportunity/wxIndex?stage=alreadyCS' 
        });
    }
    if (type == 4) {
        wx.redirectTo({
             url: 'http://localhost:8080/wechatOpportunity/wxIndex?stage=alreadySP' 
        });
    }
    if (type == 5) {
        wx.redirectTo({
             url: 'http://localhost:8080/wechatOpportunity/wxIndex?stage=alreadyFD' 
        });
    }
    if (type == 6) {
        wx.redirectTo({
             url: 'http://localhost:8080/wechatOpportunity/wxIndex?stage=alreadySB' 
        });
    }    
  }
});